package com.zb.Service;

import java.util.List;

import com.zb.entity.User;


public interface UserService{
	
	public List<User> findUserList(int index,int size,String username,String realname);
	
	public int updateUser(User user);
	
	public User getUserById(int userid);
	
	public int saveUser(User user);
	
	public int deleteUser(int userid);
	
	public int count();
	//登录
	public User getLogin(String name,String pwd);
	//修改密码
	public void updateUserPwd(User user);
	//查询所有角色为公司领导的用户
	public List<User> getLeaderAll();
	//根据部门获取user
	public List<User> getUserByDeptId(int did);
	
	public List<User> findUserListByDR(int deptid,int roleid);
	
	public int getSheduleState(int uid);
	
	public int updateSheduleState(int shedule,int uid);
}